# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-io-digest
pkgver=0.11
pkgrel=9
pkgdesc="Perl/CPAN Module IO::Digest"
arch=("any")
url="https://search.cpan.org/~clkao/IO-Digest/"
license=("GPL" "PerlArtistic")
depends=('perl' 'perlio-via-dynamic')
source=("https://www.cpan.org/authors/id/C/CL/CLKAO/IO-Digest-$pkgver.tar.gz")
sha256sums=('8ffcf85a7f6213e5e94140adcc2b179ed02498eadc84309457e904dec93f7f92')

build() {
  cd "$srcdir"/IO-Digest-$pkgver
  PERL_USE_UNSAFE_INC=1 \
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/IO-Digest-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
